WARNING: This program has a bug, so we need to fix it. This program has a logic error.

RULE: Variables are NOT surrounded by quotes. We refer to the variable's value by using it's name alone.

  • Click Run and look at the stage to see what's wrong with the program.
  • Use the variable fav_color in the .say() command without the quotes. It should appear orange.
  • Debug this program so that the sprite uses the variable name to say her favorite color.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)